package day04_api_code.com.itheima.d1_stringbuilder;

public class Demo1_StringBuilder {
    public static void main(String[] args) {
        StringBuilder sb = new StringBuilder();
        System.out.println("sb = " + sb);
        StringBuilder sb1 = new StringBuilder("abc");
        System.out.println("sb1 = " + sb1);

        sb.append("a").append("java").append(666).append(true);
        System.out.println("sb = " + sb);

        sb.reverse();
        System.out.println("sb = " + sb);
        System.out.println("sb.length() = " + sb.length());
        String result = sb.toString();
        System.out.println("result = " + result);
    }
}
